package com.ossjk.oa.advisory.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 项目
 * </p>
 *
 * @author Jason
 * @since 2019-02-11
 */
public class Project extends BaseEntity<Project> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("id")
    private String id;
    /**
     * 学校id
     */
    @TableField("sid")
    private String sid;
    /**
     * 名称
     */
    @TableField("name")
    private String name;
    /**
     * 开始时间
     */
    @JSONField(format = "yyyy-MM-dd")
    @TableField("sttm")
    private Date sttm;
    /**
     * 结束时间
     */
    @JSONField(format = "yyyy-MM-dd")
    @TableField("edtm")
    private Date edtm;
    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getSttm() {
        return sttm;
    }

    public void setSttm(Date sttm) {
        this.sttm = sttm;
    }

    public Date getEdtm() {
        return edtm;
    }

    public void setEdtm(Date edtm) {
        this.edtm = edtm;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Project{" +
        ", id=" + id +
        ", sid=" + sid +
        ", name=" + name +
        ", sttm=" + sttm +
        ", edtm=" + edtm +
        ", remarks=" + remarks +
        "}";
    }
}
